<me:UIWTZ x:Class="WPFExcelReport.TSWT06"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                      xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIWTZ.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIWTZ.Resources>
    <WrapPanel>
        <TextBlock Text="{Binding Source={Localization:Translate Word=穿筘}}" />
        <ComboBox Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
                 IsEditable="True"
                 Width="100"
                 MinWidth="60"
                 SelectedValuePath="KEY"
                 DisplayMemberPath="KEY"
                  DropDownOpened="ComboBox_DropDownOpened"
                 ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
                 IsSynchronizedWithCurrentItem="True" 
                 ScrollViewer.HorizontalScrollBarVisibility="Visible"
                 >
        </ComboBox>
        <TextBlock Text="{Binding KEY,ElementName=TV}" Visibility="{Binding IsEdit,Converter={StaticResource nbv}}"/>
        <TextBlock Text="{Binding DES,ElementName=TV,Converter={StaticResource gb2312}}" />
        <Button  Grid.Column="1" Click="ManageCommand" Width="12" Height="20" HorizontalAlignment="Left" Visibility="{Binding IsMaster,Converter={StaticResource bv}}" >
            <Button.Background>
                <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
            </Button.Background>
        </Button>
    </WrapPanel>
</me:UIWTZ>

    
